package com.example.aerospacemanagementsystem.service.personnelService.impl;


import com.example.aerospacemanagementsystem.entity.personnel.Employee;
import com.example.aerospacemanagementsystem.entity.personnel.Partymember;
import com.example.aerospacemanagementsystem.mapper.personnelMapper.EmployeeMapper;
import com.example.aerospacemanagementsystem.mapper.personnelMapper.PartymemberMapper;
import com.example.aerospacemanagementsystem.service.personnelService.PartymemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 吴欣悦
* @description 针对表【partymember】的数据库操作Service实现
* @createDate 2023-11-03 11:34:13
*/
@Service
public class PartymemberServiceImpl implements PartymemberService{
    @Autowired
    private PartymemberMapper partymemberMapper;

    @Override
    public int add(Partymember partymember) {
        return partymemberMapper.insert(partymember);
    }

    @Override
    public int delete(Partymember partymember) {
        return partymemberMapper.delete(partymember);
    }

    @Override
    public int update(Partymember partymember) {
        return partymemberMapper.update(partymember);
    }

    @Override
    public List<Partymember> getAllPartymember(Partymember partymember) {
        return partymemberMapper.getAllPartymember(partymember);
    }

}




